#if 0
#include <Magick++.h> 
#include <iostream> 
#include "biplTypes.h"
using namespace std; 
using namespace Magick; 
int main(int argc,char **argv) 
{ 
  // Construct the image object. Seperating image construction from the 
  // the read operation ensures that a failure to read the image file 
  // doesn't render the image object useless.
  Image canvas("500x500", "white"); 
  Image clean("500x500", "white"); 
  Image lena;
  try { 
    // Read a file into image object 
    lena.read( "C:\projects\bipl\bin\lena.jpg" );

    // Crop the image to specified size (width, height, xOffset, yOffset)
    //image.crop( Geometry(100,100, 100, 100) );
	//canvas = image;
    // Write the image to a file
	canvas.write("blank.jpg");

	// Scaling and translation
	Image lenaScale = lena;
	lenaScale.scale("50x50");
    lena.write( "lenaScale.jpg" );
	canvas.composite(lenaScale, 50, 50);
	canvas.write("translation.jpg");
	
	//Rotation
	canvas = clean;
	Image lenaRotate = lenaScale;
	lenaRotate.rotate(45.0);
	canvas.composite(lenaRotate, 0, 0);
	canvas.write("rotation.jpg");

	// Skewing
	canvas = clean;
	Image lenaSkew = lenaScale;
	lenaSkew.shear(30.0, 0.0);
	canvas.composite(lenaSkew, 0, 0);
	canvas.write("skew.jpg");
  } 
  catch( Exception &error_ ) 
    { 
      cout << "Caught exception: " << error_.what() << endl; 
      return 1; 
    } 
  return 0; 
}
#endif